﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmSeguimientoImportacionDetalleActualizar.aspx.cs"
    Inherits="Crosland.Automotriz.Web.Repuestos.wFrmSeguimientoImportacionDetalleActualizar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <style type="text/css">
        .campos_oblig
        {
            color: Red;
            font-weight: bold;
        }
        .filas
        {
            padding: 0.75em 1em;
        }
        #divPrimero, #divSegundo
        {
            width: 312px;
            float: left;
        }
        #divSegundo
        {
            margin-top: 1.29em;
        }
        #sep
        {
            clear: both;
        }
        #botones
        {
            width: 75%;
        }
        .vacio
        {
            width: 10px;
        }
        .result_guardar
        {
            color: Green;
        }
    </style>
    <script type="text/javascript">
        function ShowMsj() {
            pcMensaje2.Show();
        }
        function Total_Fob(e) {
            var key = window.event.keyCode;
            if (key < 48 || key > 57) {
                txtCMTotalFob.SetText("");
                return false;
            }
            var cant = 0; var fob = 0;
            if (txtCMCantidad.GetText() === "" || txtCMFob.GetText() === "") {
                txtCMTotalFob.SetText("");
                return;
            }
            cant = parseFloat(txtCMCantidad.GetText());
            fob = parseFloat(txtCMFob.GetText());
            txtCMTotalFob.SetText(parseFloat(cant * fob).toFixed(2));
        }
        function BuscarMaterial() {
            btnBuscarMaterialCM.DoClick();
        }
    </script>
    <asp:UpdatePanel ID="UPL1" runat="server">
        <ContentTemplate>
            <div class="main-header" style="width: 100%">
                <div class="main-titulo" style="width: 87%;">
                    Seguimiento de Importación Detalle
                </div>
            </div>
            <div class="content-form">
                <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" 
                    HeaderText="Seguimiento de Importación - Detalle" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                    GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                    <HeaderStyle>
                        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                    </HeaderStyle>
                    <PanelCollection>
                        <dx:PanelContent>
                            <div id="divPrimero">
                                <table width="100%">
                                    <tr>
                                        <td class="filas">
                                            Organización
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxLabel ID="lblCMDesOrg" runat="server">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td class="vacio">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            Material
                                        </td>
                                        <td class="filas" style="width: 116px">
                                            <dx:ASPxTextBox ID="txtCMCodMaterial" runat="server" Width="170px" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                Height="30px">
                                                <ClientSideEvents LostFocus="function(s, e) {BuscarMaterial();}" />
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            Color
                                        </td>
                                        <td class="filas" style="width: 116px">
                                            <dx:ASPxComboBox ID="cboCMColor" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                IncrementalFilteringMode="Contains" Height="30px">
                                                <ItemStyle Height="30px" />
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <DropDownButton Width="20px">
                                                </DropDownButton>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td class="vacio">
                                            <dx:ASPxLabel ID="ASPXLabel3" runat="server" Text="*" CssClass="campos_oblig">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            Cantidad
                                        </td>
                                        <td class="filas" style="width: 116px">
                                            <dx:ASPxTextBox ID="txtCMCantidad" ClientInstanceName="txtCMCantidad" 
                                                runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="30px">
                                                <ClientSideEvents KeyUp="function(s, e) {Total_Fob(s);}" />
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio">
                                            <dx:ASPxLabel ID="ASPXLabel7" runat="server" Text="*" CssClass="campos_oblig">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            Total Fob
                                        </td>
                                        <td class="filas" style="width: 116px">
                                            <dx:ASPxTextBox ID="txtCMTotalFob" ClientInstanceName="txtCMTotalFob" 
                                                Enabled="false" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px" 
                                                Height="30px">
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio">
                                            <dx:ASPxLabel ID="ASPXLabel5" runat="server" Text="*" CssClass="campos_oblig">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas" colspan="3">
                                            <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="(*) Campos Obligatorios" CssClass="campos_oblig">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div id="divSegundo">
                                <table width="100%">
                                    <tr>
                                        <td class="filas" align="center">
                                        </td>
                                        <td class="vacio">
                                            <dx:ASPxTextBox ID="txtCMIdMaterial" runat="server" Width="1px" ClientVisible="false">
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio" colspan="2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas" colspan="2" style="padding-top: 0.85em">
                                            <dx:ASPxTextBox ID="txtCMDesMaterial" runat="server" Width="300px" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                ClientEnabled="false" Height="30px">
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio" colspan="2">
                                            <dx:ASPxLabel ID="ASPXLabel4" runat="server" Text="*" CssClass="campos_oblig">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td class="filas" colspan="2">
                                            <dx:ASPxButton ID="btnCMBuscarMaterial" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" AutoPostBack="false"
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                Width="50px" Height="30px">
                                                <ClientSideEvents Click="function(s, e) {pcMaterial.Show();}" />
                                                <Image Url="~/Images/three_dots.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            Caja
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxTextBox ID="txtCMCaja" runat="server" Width="170px" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="30px">
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio" colspan="2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            Fob
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxTextBox ID="txtCMFob" ClientInstanceName="txtCMFob" runat="server" 
                                                Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                Height="30px">
                                                <ClientSideEvents KeyUp="function(s, e) {Total_Fob(e);}" />
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio">
                                            <dx:ASPxLabel ID="ASPXLabel6" runat="server" Text="*" CssClass="campos_oblig">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td class="vacio" colspan="2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            <dx:ASPxTextBox ID="txtCMNumPedido" runat="server" Width="1px" ClientVisible="false">
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxTextBox ID="txtCMIdPedido" runat="server" Width="1px" ClientVisible="false">
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="vacio">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            <dx:ASPxButton ID="btnBuscarMaterialCM" ClientInstanceName="btnBuscarMaterialCM" runat="server" OnClick="BuscarMaterialCM" Width="1px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ClientVisible="false">
                                            </dx:ASPxButton>
                                        </td>
                                        <td class="filas">
                                            &nbsp;
                                        </td>
                                        <td class="vacio">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div id="sep">
                            </div>
                            <div id="botones">
                                <table width="600px">
                                    <tr>
                                        <td align="right" class="filas">
                                            <dx:ASPxButton ID="btnCMGuardar" runat="server" Text="Guardar" 
                                                OnClick="GuardarCM" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                Style="height: 23px" AutoPostBack="False">
                                                <Image Url="~/Images/save_16.gif">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                        <td align="left" class="filas">
                                            <dx:ASPxButton ID="btnCancelar" runat="server" Text="Salir" 
                                                OnClick="CancelarCM" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                AutoPostBack="False">
                                                <Image Url="~/Images/logout.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="filas">
                                            <dx:ASPxLabel ID="lblresul" runat="server" Text="" CssClass="result_guardar">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxRoundPanel>
                <div id="PopUp">
                    <dx:ASPxPopupControl ID="pcMensaje" runat="server" AllowDragging="True" ClientInstanceName="pcMensaje2" CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                        CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                        PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="350px">
                        <HeaderImage Url="~/Images/icon_message.png">
                        </HeaderImage>
                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                        </LoadingPanelImage>
                        <CloseButtonStyle>
                            <Paddings Padding="0px" />
                        </CloseButtonStyle>
                        <ContentStyle>
                            <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                        </ContentStyle>
                        <HeaderStyle>
                            <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl ID="PopupControlContentControl10" runat="server" SupportsDisabledAttribute="True">
                                <br />
                                <dx:ASPxPanel ID="ASPxPanel9" runat="server" DefaultButton="btCreate">
                                    <PanelCollection>
                                        <dx:PanelContent ID="PanelContent11" runat="server">
                                            <table align="center">
                                                <tr>
                                                    <td colspan="2">
                                                        <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                            <table align="center">
                                                <tr>
                                                    <td align="center" style="width: 215px">
                                                        <dx:ASPxButton ID="ASPxButton6" runat="server" Text="Aceptar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <ClientSideEvents Click="function(s, e) {

pcMensaje2.Hide();

}" />
                                                            <Image Url="~/Images/ok.png">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxPanel>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                    <dx:ASPxPopupControl ID="pcMaterial" runat="server" ClientInstanceName="pcMaterial" Width="750px" HeaderText="Seleccionar Material" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                        Modal="true" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                        </LoadingPanelImage>
                        <CloseButtonStyle>
                            <Paddings Padding="0px" />
                        </CloseButtonStyle>
                        <ContentStyle>
                            <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                        </ContentStyle>
                        <HeaderStyle>
                            <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl>
                                <table width="100%">
                                    <tr>
                                        <td class="filas">
                                            Sector
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxComboBox ID="cboSector" runat="server" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="30px">
                                                <ItemStyle Height="30px" />
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <DropDownButton Width="20px">
                                                </DropDownButton>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td class="filas">
                                            Límite
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxComboBox ID="cboMatLimite" runat="server" SelectedIndex="0" Spacing="0" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" CssPostfix="Office2010Blue"
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" Height="30px">
                                                <Items>
                                                    <dx:ListEditItem Selected="True" Text="100 Registros" Value="100" />
                                                    <dx:ListEditItem Text="200  Registros" Value="200" />
                                                </Items>
                                                <ItemStyle Height="30px" />
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <DropDownButton Width="20px">
                                                </DropDownButton>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td class="filas" rowspan="2">
                                            <dx:ASPxButton ID="btnMBuscar" runat="server" Text="Buscar" Width="100px" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                OnClick="btnMBuscar_Click" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="30px">
                                                <Image Url="~/Images/search.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas">
                                            Código
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxTextBox ID="txtMCodigo" runat="server" Width="170px" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="30px">
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td class="filas">
                                            Descripción
                                        </td>
                                        <td class="filas">
                                            <dx:ASPxTextBox ID="txtMDescrip" runat="server" Width="170px" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="30px">
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5">
                                            <dx:ASPxGridView ID="grdMaterial" ClientInstanceName="grdMaterial" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                KeyFieldName="ID_MATERIAL" Width="100%" AutoGenerateColumns="False" OnAfterPerformCallback="grdMaterial_AfterPerformCallback" OnPageIndexChanged="grdMaterial_PageIndexChanged">
                                                <TotalSummary>
                                                    <dx:ASPxSummaryItem FieldName="DES_SECTOR" SummaryType="Count" DisplayFormat="total de filas = #,##0" />
                                                </TotalSummary>
                                                <Columns>
                                                    <dx:GridViewDataTextColumn FieldName="ID_MATERIAL" ShowInCustomizationForm="True" Visible="False" VisibleIndex="0" Width="0px">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Codigo" FieldName="COD_MATERIAL" ShowInCustomizationForm="True" VisibleIndex="2" Width="175px">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Nombre" FieldName="DES_MATERIAL" ShowInCustomizationForm="True" VisibleIndex="3" Width="380px">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="FOB" ShowInCustomizationForm="True" VisibleIndex="4" Visible="false" Width="0px">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Sector" FieldName="DES_SECTOR" ShowInCustomizationForm="True" VisibleIndex="1" Width="150px">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="ID_SECTOR" ShowInCustomizationForm="True" Visible="False" VisibleIndex="5" Width="0px">
                                                    </dx:GridViewDataTextColumn>
                                                </Columns>
                                                <SettingsBehavior AllowFocusedRow="True" />
                                                <SettingsPager Visible="False" PageSize="500">
                                                </SettingsPager>
                                                <Settings ShowFooter="True" ShowVerticalScrollBar="True" />
                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanelOnStatusBar>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </Images>
                                                <ImagesFilterControl>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </ImagesFilterControl>
                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                    </Header>
                                                    <LoadingPanel ImageSpacing="5px">
                                                    </LoadingPanel>
                                                </Styles>
                                                <StylesPager>
                                                    <PageNumber ForeColor="#3E4846">
                                                    </PageNumber>
                                                    <Summary ForeColor="#1E395B">
                                                    </Summary>
                                                </StylesPager>
                                                <StylesEditors ButtonEditCellSpacing="0">
                                                </StylesEditors>
                                            </dx:ASPxGridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="padding: 1em 1em 0 0;" colspan="3">
                                            <dx:ASPxButton ID="btnAgregarMaterial" runat="server" Text="Aceptar" OnClick="AgregarMaterial" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <Image Url="~/Images/ok.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                        <td align="left" style="padding: 1em 0 0 1em;" colspan="3">
                                            <dx:ASPxButton ID="btnCancelarMaterial" runat="server" AutoPostBack="false" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <ClientSideEvents Click="function(s, e){ pcMaterial.Hide();}" />
                                                <Image Url="~/Images/cancel.gif">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                    <dx:ASPxPopupControl ID="pcAgregar" runat="server" AllowDragging="True" ClientInstanceName="pcAgregar" CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                        CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                        PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="350px">
                        <HeaderImage Url="~/Images/icon_message.png">
                        </HeaderImage>
                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                        </LoadingPanelImage>
                        <CloseButtonStyle>
                            <Paddings Padding="0px" />
                        </CloseButtonStyle>
                        <ContentStyle>
                            <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                        </ContentStyle>
                        <HeaderStyle>
                            <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl ID="PopupControlContentControl9" runat="server" SupportsDisabledAttribute="True">
                                <br />
                                <dx:ASPxPanel ID="ASPxPanel8" runat="server" DefaultButton="btCreate">
                                    <PanelCollection>
                                        <dx:PanelContent ID="PanelContent10" runat="server">
                                            <table width="100%">
                                                <tr>
                                                    <td colspan="2" align="center" class="filas">
                                                        ¿Desea Agregar Otro Material?
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="filas" align="right">
                                                        <dx:ASPxButton ID="PopAceptarFiltro" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            Text="Aceptar" OnClick="MaterialAgregar" Width="100px">
                                                            <Image Url="~/Images/ok.png">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td class="filas" align="left">
                                                        <dx:ASPxButton ID="PopCancelarFiltro" runat="server" Text="Salir" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px" OnClick="Salir">
                                                            <ClientSideEvents Click="function(s, e) {pcAgregar.Hide();}" />
                                                            <Image Url="~/Images/logout.png">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxPanel>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
